package ${packagePath}service.impl;

import org.cs.dolphin.common.base.ReturnInfo;
import org.cs.dp.sonar.domain.entity.${name}Entity;
import org.cs.dp.sonar.mapper.${name}Mapper;
import org.cs.dp.sonar.service.I${name}Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @ClassName I${name}ServiceImpl
* @Description ${explain}实现类
* @Author ${author}
* @Date ${date}
**/
@Service
public class I${name}ServiceImpl implements I${name}Service {
@Autowired
private ${name}Mapper ${name?uncap_first}Mapper;

@Override
public ReturnInfo add${name}(${name}Entity param) {
${name?uncap_first}Mapper.insertSelective(param);
return new ReturnInfo();
}

@Override
public ReturnInfo del${name}(Integer param) {
${name?uncap_first}Mapper.deleteByPrimaryKey(param);
return new ReturnInfo();
}

@Override
public ReturnInfo edit${name}(${name}Entity param) {
${name?uncap_first}Mapper.updateByPrimaryKeySelective(param);
return new ReturnInfo();
}

@Override
public ReturnInfo get${name}() {
${name?uncap_first}Mapper.selectByPrimaryKey(1);
return new ReturnInfo();
}
}
